Developer --> Technical Publications
PATHJava Developer Documentation > Mac OS Runtime for Java > MRJToolkit > Programming With MRJToolkit


The MRJQuitHandler Interface

The com.apple.mrj.MRJQuitHandler interface contains one method, handleQuit , which is called when the Finder requests that the application quit.


handleQuit

Handles a quit request.

public void handleQuit ();

DISCUSSION

This application-defined method is called when the Finder requests that the application quit. For example, this occurs when the user selects the Shutdown menu item in the Finder. Typically, your method should perform any necessary cleanup (and possibly ask if the user really wants to quit) and then call the method java.lang.System.exit() . You must register the method name by calling the registerQuitHandler method registerQuitHandler when initializing the application. The handleQuit method is only useful if you have packaged your Java application using JBindery.

SEE ALSO

The registerQuitHandler method registerQuitHandler .


© 1998 Apple Computer, Inc. — (Last Updated 10 Dec 98)

Previous | Back Up One Level | Next |